<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

//前台首页控制器
class Index extends Home_Controller{

	public function __construct(){
		parent::__construct();
        $this->load->library('pay');

	}
	public function payto(){
        $data['subject'] = $this->input->post('subject');
        $data['out_trade_no'] = $this->input->post('out_trade_no');
        $data['total_fee'] = $this->input->post('total_fee');
        $res = $this->pay->alipay($data);
        echo json_encode($res);
    }

    public function test(){
        $this->pay->show();
    }


}